package org.game.log;

import com.sojoys.artifact.tools.SK_Plus;
import org.game.log.builder.LogDsp;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 约会日志
 * Created by fxf on 2018-1-4.
 */
public class LogDating implements IGameLogger {

    private LogDating() {
    }

    private static LogDating ME = new LogDating();

    public static LogDating me() {
        return ME;
    }

    private static Logger datingLogger = LoggerFactory.getLogger("dating");


    public void log(int pid, int datingType,int scriptId,int datingRuleCfgId,LogDsp logDsp) {
        SK_Plus sb = getPlayerInfo(pid);
        addField(sb, datingType);
        addField(sb, scriptId);
        addField(sb, datingRuleCfgId);
        addField(sb, logDsp.getDsp());
        addField(sb, logDsp.build());
        datingLogger.info(sb.e());
    }

}